<template>
  <view class="content">
    <image class="logo" src="/static/logo.png" />
    <!-- 自定义 svg 图标-->
    <image src="/static/svg/logo.svg" />
    <view class="text-area">
      <text class="title" :style="{ color: styleVariables.colorTextPrimary }">{{ title }}</text>
    </view>
  </view>
</template>

<script setup lang="ts">
import { styleVariables } from '@/styles'
import { onLoad } from '@dcloudio/uni-app'

const title = ref('Hello')
onLoad(() => {
  console.log('获取全局样式变量：', styleVariables)
})
</script>

<style>
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 200rpx;
  height: 200rpx;
  margin: 200rpx auto 50rpx;
}

.text-area {
  display: flex;
  justify-content: center;
}

.title {
  font-size: 36rpx;
  color: #8f8f94;
}
</style>
